//采购合同子项号、资源号、捆包号、入库状态、件数、新件数、
//入库量、新入库量、炉号、库位、厚、宽、长、入库单子项号、
//采购合同子项状态、品名、牌号、规格、产地、技术标准、质量等级、货主单位、备注
function getStorageFileViewSubOptions() {
    var initOptions = {
        fitColumns: false,
        fit: true,
        columns: [[{
            field: 'contractSubCode',
            title: '采购合同子项号',
            width: 110
        }, {
            title: '资源号',
            field: 'resourceNumber',
            width: 60
        }, {
            title: '捆包号',
            field: 'packageNumber',
            width: 110
        }, {
            title: '入库状态',
            field: 'storageSubStatus',
            width: 60
        }, {
            field: 'storagePage',
            title: '件数',
            width: 60,
            align: 'right'
        }, {
            title: '入库量',
            field: 'storageNo',
            width: 80,
            align: 'right',
            formatter: function (value, rowData, rowIndex) {//格式化该字段内的显示
                return formatWeight(value);
            }
        }, {
            field: 'furnaceNo',
            title: '炉号',
            width: 60
        }, {
            title: '库位',
            field: 'posation',
            width: 80
        }, {
            title: '厚',
            field: 'mdThick',
            width: 60
        }, {
            title: '宽',
            field: 'mdWidths',
            width: 60
        }, {
            title: '长',
            field: 'mdLong',
            width: 60
        }, {
            title: '入库单子项号',
            field: 'storageSubCode',
            width: 110
        }, {
            title: '采购合同子项状态',//TODO node
            field: 'contractSubStatus',
            width: 110
        }, {
            title: '品名',
            field: 'goodsName',
            width: 80
        }, {
            title: '牌号',
            field: 'marks',
            width: 80
        }, {
            title: '规格',
            field: 'cpspecification',
            width: 110
        }, {
            title: '产地',
            field: 'cdName',
            width: 80
        }, {
            title: '技术标准',
            field: 'standards',
            width: 80
        }, {
            title: '质量等级',
            field: 'qualityGrade',
            width: 80
        }, {
            title: '货主单位',
            field: 'cargoUnits',
            width: 60
        }, {
            title: '备注',
            field: 'remark',
            width: 80
        }]]
    }
    return initOptions;
}

function refreshStorageDocViewList(data){
    parent.$.modalDialog.handler.dialog('close');
    //if(parent.$.modalDialog&&parent.$.modalDialog.openner_treeGrid){
        parent.$.modalDialog.openner_treeGrid.datagrid('getPager').pagination('select');
    //}
    $.messager.alert("Info", "入库单撤销成功", 'info');
}